"""Direct server runner for debugging."""
import uvicorn

if __name__ == "__main__":
    # Import and print routes before starting
    from app.main import app

    print("=" * 80)
    print("ROUTES AT STARTUP:")
    print("=" * 80)
    reminder_routes = []
    for route in app.routes:
        path = getattr(route, 'path', 'unknown')
        if 'reminder' in path.lower():
            reminder_routes.append(path)
            print(f"FOUND: {path}")

    print(f"\nTotal reminder routes: {len(reminder_routes)}")
    print("=" * 80)

    # Start server
    uvicorn.run(app, host="0.0.0.0", port=8001, reload=False)
